package com.example.thymeleaf.word.service;

import javax.servlet.http.HttpServletResponse;
import java.util.Map;

public interface AsposeWordService {
    /**
     * word下载
     *
     * @param templateName 模板名称
     * @param variables    模板参数集
     * @param response     HttpServletResponse
     * @param fileName     下载文件名称
     */
    void download(String templateName, Map<String, Object> variables, HttpServletResponse response, String fileName) throws Exception;

    /**
     * word预览
     *
     * @param templateName 模板名称
     * @param variables    模板参数集
     * @param response     HttpServletResponse
     */
    void preview(String templateName, Map<String, Object> variables, HttpServletResponse response) throws Exception;
}
